package com.weixing.mall.provider.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.weixing.mall.provider.model.domain.AgentRenew;
import com.weixing.mall.provider.model.query.AgencyFeeQuery;
import com.weixing.mall.provider.model.query.AgencyRecordQuery;
import com.weixing.mall.provider.model.vo.AgencyFeeVo;
import com.weixing.mall.provider.model.vo.AgentRenewVo;
import com.weixing.mall.provider.model.vo.renew.RenewStats;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 代理商模块-代理商续费表 Mapper 接口
 * </p>
 *
 * @author Small
 * @since 2019-11-18
 */
public interface AgentRenewMapper extends BaseMapper<AgentRenew> {

    IPage<AgencyFeeVo> selectAgencyFeeListOfPage(@Param("pg") Page page, @Param("qs") AgencyFeeQuery agentRenewQuery);


    IPage<AgentRenewVo> agentRenewList(@Param("pg")Page page, @Param("agentId")Long agentId);

    List<AgencyFeeVo> selectAgencyFeeList(@Param("qs") AgencyFeeQuery agentRenewQuery);

    IPage<AgencyFeeVo> selectRenewList(@Param("pg")Page page, @Param("qs") AgencyFeeQuery agentRenewQuery);

    List<AgentRenewVo> selectRenewRecordList(@Param("pg")Page page, @Param("qs")AgencyRecordQuery query);

    RenewStats renewStats(@Param("qs") AgencyRecordQuery query);
}